/* 全局样式 */
:root {
    --primary-color: #4e73df;
    --primary-color-rgb: 78, 115, 223;
    --secondary-color: #1cc88a;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fc;
    color: #5a5c69;
}

.container {
    max-width: 1140px;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white !important;
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    color: #6e707e !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.25rem;
}

/* 按钮样式 */
.btn {
    border-radius: 0.35rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #17a673;
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* 表单样式 */
.form-control {
    border-radius: 0.35rem;
    border: 1px solid #d1d3e2;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    color: #4e5156;
}

/* 头部和页脚 */
.header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), #224abe);
    color: white;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.header h1 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.header .lead {
    font-weight: 500;
    font-size: 1.2rem;
}

.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: #6e707e;
    border-top: 1px solid #e3e6f0;
    text-align: center;
}

/* 活动卡片样式 */
.activity-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.activity-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 1px solid #e3e6f0;
}

.nav-tabs .nav-link {
    border: none;
    margin-bottom: -1px;
    border-radius: 0.35rem 0.35rem 0 0;
    font-weight: 600;
    color: #6e707e;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    background-color: white;
    border-bottom: 3px solid var(--primary-color);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .header {
        padding: 2rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}

/* 自定义动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 徽章样式 */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.35rem;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--secondary-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* 表格样式 */
.table {
    color: #5a5c69;
}

.table thead th {
    border-bottom: 2px solid #e3e6f0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fc;
} 